<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>bn::ibitset class | Butano Docs</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
  <link rel="icon" href="favicon-dark.png" type="image/png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#22272e" />
</head>
<body>
<header><nav id="navigation">
  <div class="m-container">
    <div class="m-row">
      <span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
        <a href="https://github.com/GValiente/butano">Butano</a> <span class="m-breadcrumb">|</span> <a href="index.html" class="m-thin">Docs</a>
      </span>
      <div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
        <a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
          <path id="m-doc-search-icon-path" d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z"/>
        </svg></a>
        <a id="m-navbar-show" href="#navigation" title="Show navigation"></a>
        <a id="m-navbar-hide" href="#" title="Hide navigation"></a>
      </div>
      <div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
        <div class="m-row">
          <ol class="m-col-t-6 m-col-m-none">
            <li><a href="pages.html">Pages</a></li>
            <li><a href="modules.html">Modules</a></li>
          </ol>
          <ol class="m-col-t-6 m-col-m-none" start="3">
            <li><a href="namespaces.html">Namespaces</a></li>
            <li><a href="annotated.html">Classes</a></li>
            <li><a href="files.html">Files</a></li>
            <li class="m-show-m"><a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
              <use href="#m-doc-search-icon-path" />
            </svg></a></li>
          </ol>
        </div>
      </div>
    </div>
  </div>
</nav></header>
<main><article>
  <div class="m-container m-container-inflatable">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <h1>
          <span class="m-breadcrumb"><a href="namespacebn.html">bn</a>::<wbr/></span>ibitset <span class="m-thin">class</span>
          <div class="m-doc-include m-code m-inverted m-text-right"><span class="cp">#include</span> <a class="cpf" href="bn__bitset_8h.html">&lt;bn_bitset.h&gt;</a></div>
        </h1>
        <p>Base class of <a href="classbn_1_1bitset.html" class="m-doc">bn::<wbr />bitset</a>.</p>
        <nav class="m-block m-default">
          <h3>Contents</h3>
          <ul>
            <li>
              Reference
              <ul>
                <li><a href="#derived-classes">Derived classes</a></li>
                <li><a href="#pub-types">Public types</a></li>
                <li><a href="#pub-methods">Public functions</a></li>
                <li><a href="#friends">Friends</a></li>
              </ul>
            </li>
          </ul>
        </nav>
<p>Can be used as a reference type for all <a href="classbn_1_1bitset.html" class="m-doc">bn::<wbr />bitset</a> containers.</p>
        <section id="derived-classes">
          <h2><a href="#derived-classes">Derived classes</a></h2>
          <dl class="m-doc">
            <dt>
              <div class="m-doc-template">template&lt;int Size&gt;</div>
              class <a href="classbn_1_1bitset.html" class="m-doc">bitset</a>
            </dt>
            <dd><code>std::bitset</code> like container.</dd>
            <dt>
              class <a href="classbn_1_1bitset__ref.html" class="m-doc">bitset_ref</a>
            </dt>
            <dd>ibitset implementation which manages an external elements array.</dd>
          </dl>
        </section>
        <section id="pub-types">
          <h2><a href="#pub-types">Public types</a></h2>
          <dl class="m-doc">
            <dt>
              class <a href="classbn_1_1ibitset_1_1reference.html" class="m-doc">reference</a>
            </dt>
            <dd>Proxy to allow to interact with individual bits of a ibitset.</dd>
            <dt id="a98e3410ef245fb237f8298ced4c74035">
              using <a href="#a98e3410ef245fb237f8298ced4c74035" class="m-doc-self">element_t</a> = uint8_t
            </dt>
            <dd>Element type alias.</dd>
          </dl>
        </section>
        <section id="pub-methods">
          <h2><a href="#pub-methods">Public functions</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ad229b46e7c9c7f5de81420c02c6671f5" class="m-doc">operator=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Copy assignment operator.</dd>
            <dt id="ad032f0e67d371edb29baeb90feb69109">
              <span class="m-doc-wrap-bumper">auto <a href="#ad032f0e67d371edb29baeb90feb69109" class="m-doc-self">data</a>(</span><span class="m-doc-wrap">) const -&gt; const <a href="#a98e3410ef245fb237f8298ced4c74035" class="m-doc">element_<wbr />t</a>* <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const pointer to the beginning of the internal data.</dd>
            <dt id="a25dc8b28ea3335b8fa025d6629e107e0">
              <span class="m-doc-wrap-bumper">auto <a href="#a25dc8b28ea3335b8fa025d6629e107e0" class="m-doc-self">size</a>(</span><span class="m-doc-wrap">) const -&gt; int <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the bits count.</dd>
            <dt id="a973f85430882f4a47856d53b473c9b9b">
              <span class="m-doc-wrap-bumper">auto <a href="#a973f85430882f4a47856d53b473c9b9b" class="m-doc-self">elements_size</a>(</span><span class="m-doc-wrap">) const -&gt; int <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the elements count.</dd>
            <dt id="ad691d4acc59018fe4a4e361fe4a82924">
              <span class="m-doc-wrap-bumper">auto <a href="#ad691d4acc59018fe4a4e361fe4a82924" class="m-doc-self">count</a>(</span><span class="m-doc-wrap">) const -&gt; int <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the number of bits that are set to <code>true</code>.</dd>
            <dt id="a491ca488e707958047410fedcd7496cf">
              <span class="m-doc-wrap-bumper">auto <a href="#a491ca488e707958047410fedcd7496cf" class="m-doc-self">test</a>(</span><span class="m-doc-wrap">int index) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the value stored at the specified index.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ad527a6ff1381c465bc4746866848119e" class="m-doc">set</a>(</span><span class="m-doc-wrap">) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets all bits to <code>true</code>.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#afe8faa11d28f3047de00fe45134bb9a8" class="m-doc">set</a>(</span><span class="m-doc-wrap">int index) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the specified bit to <code>true</code>.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a06f46b405ac37d9b27d6799b4af6ee84" class="m-doc">set</a>(</span><span class="m-doc-wrap">int index,
              bool value) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the specified bit to the specified value.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a630c64d7fcfbd29a7081114962a26ebe" class="m-doc">reset</a>(</span><span class="m-doc-wrap">) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets all bits to <code>false</code>.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a66d73c0147ac9f3c372af77da90b5e08" class="m-doc">reset</a>(</span><span class="m-doc-wrap">int index) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the specified bit to <code>false</code>.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a35d15881c495223ae5f006e4193dfdad" class="m-doc">flip</a>(</span><span class="m-doc-wrap">) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Flips all values (changes <code>true</code> values to <code>false</code> and vice versa).</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#aaf043e2ba60794fb9cd28f5235aa3117" class="m-doc">flip</a>(</span><span class="m-doc-wrap">int index) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Flips the specified bit value (changes <code>true</code> value to <code>false</code> and vice versa).</dd>
            <dt id="a8056be43dbf3dbfa7dc408d7ffd92a19">
              <span class="m-doc-wrap-bumper">auto <a href="#a8056be43dbf3dbfa7dc408d7ffd92a19" class="m-doc-self">operator[]</a>(</span><span class="m-doc-wrap">int index) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the value stored at the specified index.</dd>
            <dt id="a57d7e7b9a6d1dca46e56866820f2adbb">
              <span class="m-doc-wrap-bumper">auto <a href="#a57d7e7b9a6d1dca46e56866820f2adbb" class="m-doc-self">operator[]</a>(</span><span class="m-doc-wrap">int index) -&gt; <a href="classbn_1_1ibitset_1_1reference.html" class="m-doc">reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a reference to the value stored at the specified index.</dd>
            <dt id="a53ea5fd9fb3cc6bed36b2db3e41105fb">
              <span class="m-doc-wrap-bumper">auto <a href="#a53ea5fd9fb3cc6bed36b2db3e41105fb" class="m-doc-self">at</a>(</span><span class="m-doc-wrap">int index) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the value stored at the specified index.</dd>
            <dt id="a003f576849c91c8f4cfbec7013f3051a">
              <span class="m-doc-wrap-bumper">auto <a href="#a003f576849c91c8f4cfbec7013f3051a" class="m-doc-self">at</a>(</span><span class="m-doc-wrap">int index) -&gt; <a href="classbn_1_1ibitset_1_1reference.html" class="m-doc">reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a reference to the value stored at the specified index.</dd>
            <dt id="a660cb036fce690d10c9b443b5ac36c1c">
              <span class="m-doc-wrap-bumper">auto <a href="#a660cb036fce690d10c9b443b5ac36c1c" class="m-doc-self">all</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if all values are <code>true</code>.</dd>
            <dt id="a3520f85c965842d5c4e2c59479806c61">
              <span class="m-doc-wrap-bumper">auto <a href="#a3520f85c965842d5c4e2c59479806c61" class="m-doc-self">any</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if any value is <code>true</code>.</dd>
            <dt id="a00128b0b5a70767a6a0c7fd6989a7bea">
              <span class="m-doc-wrap-bumper">auto <a href="#a00128b0b5a70767a6a0c7fd6989a7bea" class="m-doc-self">none</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if all values are <code>false</code>.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a44b30bd32bf01b2db20a7f6bd7e628ad" class="m-doc">operator&amp;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the bits to the result of binary AND of this ibitset and the given one.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#abbcf8335ae448a5dfa2025ff1a54abbe" class="m-doc">operator|=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the bits to the result of binary OR of this ibitset and the given one.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a69c3242a6c18d4396c3dde3b5e08e443" class="m-doc">operator^=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) -&gt; <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the bits to the result of binary XOR of this ibitset and the given one.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ac840b486d01a4d69e274b827a611f955" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Exchanges the contents of this ibitset with those of the other one.</dd>
          </dl>
        </section>
        <section id="friends">
          <h2><a href="#friends">Friends</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#abc58c1d2c3136fb5ec5efddcffa5a31c" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; a,
              <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; b) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Exchanges the contents of an ibitset with those of another one.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a7ce90b332c6b074f58e935a9d94cf3e5" class="m-doc">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; a,
              const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Equal operator.</dd>
          </dl>
        </section>
        <section>
          <h2>Function documentation</h2>
          <section class="m-doc-details" id="ad229b46e7c9c7f5de81420c02c6671f5"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad229b46e7c9c7f5de81420c02c6671f5" class="m-doc-self">operator=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Copy assignment operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>ibitset to copy.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ad527a6ff1381c465bc4746866848119e"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad527a6ff1381c465bc4746866848119e" class="m-doc-self">set</a>(</span><span class="m-doc-wrap">) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets all bits to <code>true</code>.</p>
            <table class="m-table m-fullwidth m-flat">
              <tfoot>
                <tr>
                  <th style="width: 1%">Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="afe8faa11d28f3047de00fe45134bb9a8"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#afe8faa11d28f3047de00fe45134bb9a8" class="m-doc-self">set</a>(</span><span class="m-doc-wrap">int index) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the specified bit to <code>true</code>.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">index</td>
                  <td>Index of the bit to set.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a06f46b405ac37d9b27d6799b4af6ee84"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a06f46b405ac37d9b27d6799b4af6ee84" class="m-doc-self">set</a>(</span><span class="m-doc-wrap">int index,
              bool value) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the specified bit to the specified value.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">index</td>
                  <td>Index of the bit to set.</td>
                </tr>
                <tr>
                  <td>value</td>
                  <td>Value to set.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a630c64d7fcfbd29a7081114962a26ebe"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a630c64d7fcfbd29a7081114962a26ebe" class="m-doc-self">reset</a>(</span><span class="m-doc-wrap">) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets all bits to <code>false</code>.</p>
            <table class="m-table m-fullwidth m-flat">
              <tfoot>
                <tr>
                  <th style="width: 1%">Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a66d73c0147ac9f3c372af77da90b5e08"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a66d73c0147ac9f3c372af77da90b5e08" class="m-doc-self">reset</a>(</span><span class="m-doc-wrap">int index) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the specified bit to <code>false</code>.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">index</td>
                  <td>Index of the bit to set.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a35d15881c495223ae5f006e4193dfdad"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a35d15881c495223ae5f006e4193dfdad" class="m-doc-self">flip</a>(</span><span class="m-doc-wrap">) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Flips all values (changes <code>true</code> values to <code>false</code> and vice versa).</p>
            <table class="m-table m-fullwidth m-flat">
              <tfoot>
                <tr>
                  <th style="width: 1%">Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="aaf043e2ba60794fb9cd28f5235aa3117"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aaf043e2ba60794fb9cd28f5235aa3117" class="m-doc-self">flip</a>(</span><span class="m-doc-wrap">int index) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Flips the specified bit value (changes <code>true</code> value to <code>false</code> and vice versa).</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">index</td>
                  <td>Index of the bit to flip.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a44b30bd32bf01b2db20a7f6bd7e628ad"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a44b30bd32bf01b2db20a7f6bd7e628ad" class="m-doc-self">operator&amp;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the bits to the result of binary AND of this ibitset and the given one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>Another ibitset.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="abbcf8335ae448a5dfa2025ff1a54abbe"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#abbcf8335ae448a5dfa2025ff1a54abbe" class="m-doc-self">operator|=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the bits to the result of binary OR of this ibitset and the given one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>Another ibitset.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a69c3242a6c18d4396c3dde3b5e08e443"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a69c3242a6c18d4396c3dde3b5e08e443" class="m-doc-self">operator^=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the bits to the result of binary XOR of this ibitset and the given one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>Another ibitset.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ac840b486d01a4d69e274b827a611f955"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ibitset::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ac840b486d01a4d69e274b827a611f955" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; other) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Exchanges the contents of this ibitset with those of the other one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>ibitset to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="abc58c1d2c3136fb5ec5efddcffa5a31c"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#abc58c1d2c3136fb5ec5efddcffa5a31c" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; a,
              <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Exchanges the contents of an ibitset with those of another one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First ibitset to exchange the contents with.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second ibitset to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a7ce90b332c6b074f58e935a9d94cf3e5"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a7ce90b332c6b074f58e935a9d94cf3e5" class="m-doc-self">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; a,
              const <a href="classbn_1_1ibitset.html" class="m-doc">ibitset</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Equal operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First ibitset to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second ibitset to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first ibitset is equal to the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
        </section>
      </div>
    </div>
  </div>
</article></main>
<div class="m-doc-search" id="search">
  <a href="#!" onclick="return hideSearch()"></a>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-m-8 m-push-m-2">
        <div class="m-doc-search-header m-text m-small">
          <div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
          <div id="search-symbolcount">&hellip;</div>
        </div>
        <div class="m-doc-search-content">
          <form>
            <input type="search" name="q" id="search-input" placeholder="Loading &hellip;" disabled="disabled" autofocus="autofocus" autocomplete="off" spellcheck="false" />
          </form>
          <noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
          <div id="search-help" class="m-text m-dim m-text-center">
            <p class="m-noindent">Search for symbols, directories, files, pages or
            modules. You can omit any prefix from the symbol or file path; adding a
            <code>:</code> or <code>/</code> suffix lists all members of given symbol or
            directory.</p>
            <p class="m-noindent">Use <span class="m-label m-dim">&darr;</span>
            / <span class="m-label m-dim">&uarr;</span> to navigate through the list,
            <span class="m-label m-dim">Enter</span> to go.
            <span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
            copy a link to the result using <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">M</span> produces a Markdown link.</p>
          </div>
          <div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.</div>
          <ul id="search-results"></ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="search-v2.js"></script>
<script src="searchdata-v2.js" async="async"></script>
<footer><nav>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <p>Butano Docs. Created with <a href="https://doxygen.org/">Doxygen</a> 1.14.0 and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
      </div>
    </div>
  </div>
</nav></footer>
</body>
</html>
